package observer.adapter.impl;

import observer.invest.Subject;
import observer.adapter.InvestHandler;

//投资者 持有者
public class Investor implements InvestHandler {
    String name;

    public Investor(String name) {
        this.name = name;
    }

    @Override
    public void handleBigWave(Subject subject, int wave) {
        System.out.println(getName()+":我看到了"+subject.getName()+"的涨跌幅度为:"+wave);
    }

    @Override
    public String getName() {
        return name;
    }
}
